﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace pipeCore.Pipes.Units.NamedPortUnits
{
    /// <summary>
    /// This is the base unit that all units will be derived from
    /// </summary>
    public interface INamedpipeunit : IUnit
    {
       
       

        /// <summary>
        /// Add the port to the portCollection and register its events
        /// </summary>
        /// <param name="port">the port to add</param>
        void Add(pipeCore.Pipes.Ports.IPort port);
        /// <summary>
        /// Add the port to the port collection and name it
        /// </summary>
        /// <param name="port">the port to add</param>
        /// <param name="Name">port name</param>
        void Add(pipeCore.Pipes.Ports.IPort port, String Name);
        /// <summary>
        /// Create a new port and add it to the port collection
        /// </summary>
        /// <param name="Name"></param>
        void Add(String Name);
    
    }
}
